<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        console.log(1 + 1);
        console.log(1 - 1);
        console.log(1 * 1);
        console.log(1 / 1);
        //1.% 取余(取模)
        console.log(4 % 2);//0
        console.log(5 % 3);//2
        //2.浮点数，算数运算里面会有问题
        console.log(0.1 + 0.2);//0.30000000000004
        //3.我们不能直接拿浮点数来进行相比较、是否相等，精度有误差
        var num = 0.1 + 0.2;
        console.log(num == 0.3);//false
    </script>
</head>
<body>
    
</body>
</html>